<?php include_once 'photo_header.php';?>
<!--主体内容-->
<div class="main">
	<?php include_once 'photo_left.php';?>

	<div class="photo_right">
    	<div class="album_title">
        	<div class="album_title_left">
            	<div class="album_title_path"><a href="index.php?mod=photo">相册首页</a> > <a href="index.php?mod=photo&code=my">我的相册</a> >
				<a href="index.php?mod=photo&code=album&id=<?php echo $pInfo['album_first'];?>"><?php echo $pInfo['title'];?></a> > 当前照片</div>
				<?php if( $_COOKIE['MEMBER_ID'] == $pInfo['userId']  ){ ?>
            	<div class="album_title_system">
    			 <li class="cai"><span><a href="##" class="edit">编辑</a></span>
    			 	<div class="linone">
    					<ul>
    						<li><a href="index.php?mod=photo&code=set_cover&id=<?php echo $pInfo['id'];?>&aid=<?php echo $pInfo['albumId'];?>">设为封面</a></li>
    						<li class="nob"><a href="###">编辑信息</a></li>
    					</ul>
    				</div>
    			 </li> 
    			 <li><a href="###" class="del" onClick="javascript:showspeed();">删除</a></li>
                </div>
				<?php } ?>
            </div>
        	<div class="album_title_right">
            	<div class="album_thumb">
                 <a href="<?php echo $pInfo['prev_url'];?>"><img src="<?php echo $pInfo['prev_pic'];?>" /></a>
                 <a href="#"><img src="upload/photo/<?php echo $pInfo['picUrl'];?>" /></a>
                 <a href="<?php echo $pInfo['next_url'];?>"><img src="<?php echo $pInfo['next_pic'];?>" /></a>
                </div>
                <div class="album_thumb_text">
                <a href="<?php echo $pInfo['prev_url'];?>">&lt;上一张</a> 当前 <a href="<?php echo $pInfo['next_url'];?>">下一张&gt;</a> 
            	</div>
            </div>
            <div class="float_both"></div>
        </div>
        <div class="album_bigimg">
        	<span class="album_photo" id="bigImg"><img src="upload/photo/<?php echo $pInfo['picUrl'];?>" /></span>
            <span class="album_date">上传于<?php echo $pInfo['addTime'];?></span>
            <span class="album_present"><?php echo $pInfo['desc'];?></span>
        </div>
        <div class="album_post">
		  <form method="post" action="index.php?mod=photo&code=comm_add&pid=<?php echo $pInfo['id'];?>">
    		<div class="blbum_textarea">
            <textarea name="content" cols="" rows="" class="blbum_text"></textarea>
            <input type="submit" value="保存"  class="blbum_submit"/>
            <img src="./templates/app/images/photo/em.gif" />
            <div class="float_both"></div>
            </div>
		  </form>
        </div>
        <div class="album_postlist">
		<?php foreach( $comm_list as $c ){ ?>
            <dl>
            	<dt><a href="###"><img src="<?php echo $c['face'];?>" /></a></dt>
            	<dd><a href="index.php?mod=<?php echo $c['username'];?>" class="right"><?php echo $c['nickname'];?></a>：<?php echo $c['content'];?>
				<span>
			<?php if( $_COOKIE['MEMBER_ID'] == $pInfo['userId'] || $_COOKIE['MEMBER_ID'] == $c['userId']  ){ ?>
				<a href="index.php?mod=photo&code=comm_del&id=<?php echo $c['id'];?>&pid=<?php echo $pInfo['id'];?>">删除</a>
			<?php } ?>
				(<?php echo $c['addTime'];?>)</span></dd>
                <div class="float_both"></div>
            </dl>
		<?php } ?>
            <div class="float_both"></div>
        </div>
        <div class="float_both"></div>
    </div>
    <div class="float_both"></div>
</div>
<!--底部-->

<div id="overlay_div" class="overlay_div"></div>
<div id="float_layer2" class="float_layer3">
	<div class="float_title">提示</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="float_table">
  <tr>
    <td valign="top" align="center">确定删除该照片吗？</td>
  </tr>
  <tr>
    <td valign="top" align="center"><input type="button" value="确定" class="float_button" 
	<?php if( $_COOKIE['MEMBER_ID'] == $pInfo['userId']  ){ ?>
	onClick="location.href='index.php?mod=photo&code=pic_del&id=<?php echo $pInfo['id'];?>';"
	<?php } ?>	/>
	<input type="button" value="取消" class="float_button" onClick="closefloat()" /></td>
  </tr>
</table>
	<div style="postion:relative;">
		<div class="close_btn" onClick="closefloat()"><img src="templates/app/images/flow_close.gif" /></span></div>
	</div>
</div>

<?php include_once 'photo_album_div.php';?>
<?php include_once 'footer.php';?>
